﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AdvanceLib.ScriptCore;
using AdvanceLib.Core;

namespace AdvanceLib.Extension.XseScript.SystemCommands
{
    public class XseCommand : SystemCommand
    {
        #region SystemCommand Member
        public override string Name
        {
            get { return "xse"; }
        }
        public override int ExpectedParameters
        {
            get { return 0; }
        }
        public override void Execute(ScriptHost host, string[] parameters)
        {
            Settings.Instance["ScriptProvider"] = host.ExtensionManager.GetExtension<XseExtensionProvider>();
        }
        public override bool DebugParameter(int paramIndex, string paramValue)
        {
            return true;
        }
        #endregion
    }
}
